package com.krtech.wecard.module.ramble.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 漫步领取日志
 */
@ApiModel(value = "com-krtech-wecard-module-ramble-entity-RambleDrawLog")
@Data
@TableName(value = "xiaoran_ramble_draw_log")
public class RambleDrawLog implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 创建人
     */
    @TableField(value = "CREATED_BY")
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    /**
     * 创建时间 给予领取时间
     */
    @TableField(value = "CREATED_TIME")
    @ApiModelProperty(value = "创建时间 给予领取时间")
    private Date createdTime;

    /**
     * 更新人
     */
    @TableField(value = "UPDATED_BY")
    @ApiModelProperty(value = "更新人")
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATED_TIME")
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    /**
     * 领奖人openId
     */
    @TableField(value = "open_id")
    @ApiModelProperty(value = "领奖人openId")
    private String openId;

    /**
     * 领奖人昵称
     */
    @TableField(value = "nick_name")
    @ApiModelProperty(value = "领奖人昵称")
    private String nickName;

    /**
     * 领奖人电话
     */
    @TableField(value = "phone")
    @ApiModelProperty(value = "领奖人电话")
    private String phone;

    /**
     * 领奖日期 用于判断今天是否领取了
     */
    @TableField(value = "draw_time")
    @ApiModelProperty(value = "领奖日期 用于判断今天是否领取了")
    private Date drawTime;

    /**
     * 奖品名称
     */
    @TableField(value = "prize_name")
    @ApiModelProperty(value = "奖品名称")
    private String prizeName;

    /**
     * 奖品外键
     */
    @TableField(value = "fk_prize_id")
    @ApiModelProperty(value = "可领取数量")
    private Integer fkPrizeId;

    /**
     * 领取时的步数 (前端传递)
     */
    @TableField(value = "step_number")
    @ApiModelProperty(value = "领取时的步数 (前端传递)")
    private Integer stepNumber;

    /**
     * 上次抽奖步数
     */
    @TableField(value = "last_step_number")
    @ApiModelProperty(value = "上次抽奖步数")
    private Integer lastStepNumber;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CREATED_BY = "CREATED_BY";

    public static final String COL_CREATED_TIME = "CREATED_TIME";

    public static final String COL_UPDATED_BY = "UPDATED_BY";

    public static final String COL_UPDATED_TIME = "UPDATED_TIME";

    public static final String COL_OPEN_ID = "open_id";

    public static final String COL_NICK_NAME = "nick_name";

    public static final String COL_PHONE = "phone";

    public static final String COL_DRAW_TIME = "draw_time";

    public static final String COL_PRIZE_NAME = "prize_name";

    public static final String COL_FK_PRIZE_ID = "fk_prize_id";

    public static final String COL_STEP_NUMBER = "step_number";

    public static final String COL_LAST_STEP_NUMBER = "last_step_number";
}